#include <stdio.h>
int main()
{
    float R = 30;
    float G = 144;
    float B = 255;

    float Y,Cb,Cr;

    Y = 0.257*R + 0.504*G + 0.098*B + 16.0;
    Cb = -0.148*R - 0.291*G + 0.439*B + 128.0;
    Cr = 0.439*R - 0.368*G - 0.071*B + 128.0;

    printf("%f %f %f.\n", Y, Cb, Cr);

    return 0;
}
